cmake_minimum_required(VERSION 3.8)

project(jrtplib)

include_directories(../../Include ../jthread_1.3.1)

aux_source_directory(. SRC_DIR)
#link_directories(${8100_LIB_PATH})

add_compile_options(-fPIC)
add_library(jrtplib STATIC ${SRC_DIR})

target_link_libraries(jrtplib)

add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
COMMAND mkdir ${8100_LIB_PATH} -p
COMMAND cp ${PROJECT_BINARY_DIR}/libjrtplib.a ${8100_LIB_PATH}
)